package com.train.mapper;

import com.train.dto.AttDTO;
import com.train.dto.EmpAttDTO;
import com.train.pojo.Attendence;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AttMapper {
    List<AttDTO> selectAllAttDTO();

    List<EmpAttDTO> selectAllEmpAtt(EmpAttDTO empAttDTO);

    List<AttDTO> selectAttByCouresId(@Param("id")Integer id);

    List<EmpAttDTO> selectEmpAttSum(EmpAttDTO empAttDTO);

    List<Attendence> selectIsExist(Attendence attendence);

    int selectTime(@Param("courseId")Integer id);

    int AddAtt(Attendence attendence);

    int delAtt(@Param("id")Integer id);
}
